<?php
function connect()
   {
       $server="172.16.0.58";
       // $server=".";
       $username='sa';
       $password='123456';
       $database='iEasy_new';
       $connstr = "Driver={SQL Server Native Client 10.0};Server=$server;Database=$database";
       $dbconn=odbc_connect($connstr,$username,$password,SQL_CUR_USE_ODBC);
       if (!$dbconn)
       {
       die('Could not connect: ');
       }else{
           "s";
       }
          // return $dbconn;
    }
